package com.usian.article.controller.v1;

import com.usian.apis.article.ApArticleConfigControllerApi;
import com.usian.apis.article.ApCollectionControllerApi;
import com.usian.article.service.ApArticleConfigService;
import com.usian.article.service.ApCollectionService;
import com.usian.model.article.dtos.CollectionBehaviorDto;
import com.usian.model.article.pojos.ApArticleConfig;
import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.common.enums.AppHttpCodeEnum;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/v1/collection_behavior")
public class ApCollectionConfigController implements ApCollectionControllerApi {

    @Autowired
    private ApCollectionService apCollectionService;

    @PostMapping
    @Override
    public ResponseResult apCollection(@RequestBody CollectionBehaviorDto dto) {
        return apCollectionService.apCollection(dto);
    }
}
